<span>当前位置：</span>
<span class="iconfont icon-shouye"></span>
<a href="{$host}">首页</a>
{php}
$html='';
function navcate($id){
    global $html;
    $cate = new Category;
    $cate->LoadInfoByID($id);
    $html ='<span class="iconfont icon-jiantou"></span> <a href="' .$cate->Url.'" title="查看' .$cate->Name. '中的全部文章">' .$cate->Name. '</a> '.$html;
    if(($cate->ParentID)>0){navcate($cate->ParentID);}
}
if($type=='category'){
    navcate($category->ID);}
elseif($type=='article'){
    navcate($article->Category->ID);}
global $html;
echo $html;
{/php}
{if $type!='category'}
<span class="iconfont icon-jiantou"></span> <span>{$title}</span>
{/if}